package licode.unisop.platform.client.info;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * 定义平台对外的结构信息
 *
 * @author WR
 */
@Data
public class PlatUserInfo {

    private String platformId;
    private String clientId;
    private String userId;
    private String userType;

    /**
     * 用户所属的组
     */
    private List<String> userGroup;

    /**
     * 平台用户状态（0：正常；1：停用；2：删除）
     */
    private int state;

    private List<String> urls;
    private List<String> roleIds;
    private List<String> roleGroup;
    private List<String> permitCodes;
    private List<String> permitGroup;
    private List<String> forbidMenu;

    /**
     * 附加信息
     */
    private String extInfo;

    public PlatUserInfo() {
        urls = new ArrayList<>();
        roleIds = new ArrayList<>();
        roleGroup = new ArrayList<>();
        permitCodes = new ArrayList<>();
        permitGroup = new ArrayList<>();
        forbidMenu = new ArrayList<>();
    }
}
